<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Product;
class OrderProduct extends Model
{
    //
    protected $table ='dg_order_products';
    protected $fillable=['user_id','order_id','image','name','price','num','product_id','product_sku_id'];
    public function product()
    {
    	return $this->belongsTo('App\Models\Product','product_id','id');
    }
     public function specProduct()
    {
        return $this->belongsTo('App\Models\ProductSku','product_sku_id','id');
    }
}
